package com.training;

public class Student extends Second{
	public  Student(String str) {
		System.out.println("Student name is "+str);
	}
	public void feedback(){
		System.out.println("PROGRESS WAS GOOD");
	}
	public void grade(){
	System.out.println("grade = "+getgrade(80));
	}
	public String getgrade(int mark){
		if (mark<0||mark>100)
			return ("mark invalid");
		else if (mark>=75)
			return("A");
		else
			return("B");
		}
	public static void main(String args[]){
		Student s1 = new Student("ponraj");
		s1.grade();
		s1.feedback();
	}
}
